<script setup lang="ts">
import ChannelNav from './components/ChannelNav.vue';
import ArticleList from './components/ArticleList.vue'
import { ref } from 'vue';

const channelID = ref(0)

const changeChannelID = (id: number) => {
  console.log(id)
  channelID.value = id
}
</script>

<template>
  <ChannelNav :channelID="channelID" @change-channel-i-d="changeChannelID"></ChannelNav>
  <ArticleList :channelID="channelID"></ArticleList>
</template>